package com.hdax.easybuy.api.orderAPI;

import com.hdax.easybuy.entity.OrderDetail;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(value = "easybuy-Order-manager")
public interface OrderDetailManagerClient {

    @RequestMapping("/managerOrderDetail/getOrderDetailByOrderId/{orderId}")
    public List<OrderDetail> getOrderDetailByOrderIdManager(@PathVariable("orderId")int orderId);

}
